C1.WPF.DataGrid Namespace > CustomPropertyInfo Class > GetValue Method : GetValue(Object,BindingFlags,Binder,Object[],CultureInfo) Method |
'Declaration
Public Overloads Overrides Function GetValue( _ ByVal obj As System.Object, _ ByVal invokeAttr As System.Reflection.BindingFlags, _ ByVal binder As System.Reflection.Binder, _ ByVal index() As System.Object, _ ByVal culture As System.Globalization.CultureInfo _ ) As System.Object
public override System.object GetValue( System.object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.object[] index, System.Globalization.CultureInfo culture )
Exception | Description |
---|---|
System.ArgumentException | The index array does not contain the type of arguments needed.-or- The property's get accessor is not found. |
System.Reflection.TargetException | The object does not match the target type, or a property is an instance property but obj is null. |
System.Reflection.TargetParameterCountException | The number of parameters in index does not match the number of parameters the indexed property takes. |
System.MethodAccessException | There was an illegal attempt to access a private or protected method inside a class. |
System.Reflection.TargetInvocationException | An error occurred while retrieving the property value. For example, an index value specified for an indexed property is out of range. The System.Exception.InnerException property indicates the reason for the error. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2